<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddSortIntoFeishuCallingCardPosterBackground extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('feishu_calling_card_poster_background', function (Blueprint $table) {
            $table->unsignedBigInteger("sort")->default(0)->comment("排序");
            $table->string("previewImageUrl")->default('')->comment("预览图片");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('feishu_calling_card_poster_background', function (Blueprint $table) {
            $table->dropColumn('sort');
            $table->dropColumn('previewImageUrl');
        });
    }
}
